package com.lanou.dllo.soccernews.bean;

import java.util.List;

/**
 * Created by dllo on 15/10/30.
 */
public class DataResult {


    private String title, content, created_at, url;
    private int group_id, id, total_replies, up, visits, attachments_total;
    private Author author;
    private DDGroup group;
    private List<String> replies;
    private List<Attachments> attachments;
    private boolean stickied;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getGroup_id() {
        return group_id;
    }

    public void setGroup_id(int group_id) {
        this.group_id = group_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTotal_replies() {
        return total_replies;
    }

    public void setTotal_replies(int total_replies) {
        this.total_replies = total_replies;
    }

    public int getUp() {
        return up;
    }

    public void setUp(int up) {
        this.up = up;
    }

    public int getVisits() {
        return visits;
    }

    public void setVisits(int visits) {
        this.visits = visits;
    }

    public int getAttachments_total() {
        return attachments_total;
    }

    public void setAttachments_total(int attachments_total) {
        this.attachments_total = attachments_total;
    }

    public Author getAuthor() {
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    public DDGroup getGroup() {
        return group;
    }

    public void setGroup(DDGroup group) {
        this.group = group;
    }

    public List<String> getReplies() {
        return replies;
    }

    public void setReplies(List<String> replies) {
        this.replies = replies;
    }

    public List<Attachments> getAttachments() {
        return attachments;
    }

    public void setAttachments(List<Attachments> attachments) {
        this.attachments = attachments;
    }

    public boolean isStickied() {
        return stickied;
    }

    public void setStickied(boolean stickied) {
        this.stickied = stickied;
    }


    public static class Author {
        private String avatar,username,medal_desc;
        private int id,medal_id;

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getMedal_desc() {
            return medal_desc;
        }

        public void setMedal_desc(String medal_desc) {
            this.medal_desc = medal_desc;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getMedal_id() {
            return medal_id;
        }

        public void setMedal_id(int medal_id) {
            this.medal_id = medal_id;
        }

        @Override
        public String toString() {
            return "Author{" +
                    "avatar='" + avatar + '\'' +
                    ", username='" + username + '\'' +
                    ", medal_desc='" + medal_desc + '\'' +
                    ", id=" + id +
                    ", medal_id=" + medal_id +
                    '}';
        }
    }
public static class DDGroup {
    private String type,title;
    private int id;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "DDGroup{" +
                "type='" + type + '\'' +
                ", title='" + title + '\'' +
                ", id=" + id +
                '}';
    }
}

    @Override
    public String toString() {
        return "DataResult{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", created_at='" + created_at + '\'' +
                ", url='" + url + '\'' +
                ", group_id=" + group_id +
                ", id=" + id +
                ", total_replies=" + total_replies +
                ", up=" + up +
                ", visits=" + visits +
                ", attachments_total=" + attachments_total +
                ", author=" + author +
                ", group=" + group +
                ", replies=" + replies +
                ", attachments=" + attachments +
                ", stickied=" + stickied +
                '}';
    }
}
